package com.demo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.demo.entity.CommentReply;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CommentVO")
public class CommentVO {
    @ApiModelProperty(value = "评论id")
    private Integer commentId;

    @ApiModelProperty(value = "发表评论的用户")
    private Integer userId;

    @ApiModelProperty(value = "回答id")
    private Integer answerId;

    @ApiModelProperty(value = "评论内容")
    private String commentContent;

    @ApiModelProperty(value = "评论时间")
    private Date createTime;

    /*===========下面的回复（默认最多为3条）===========*/
    @ApiModelProperty(value = "评论回复")
    List<CommentReply> replyList;
}
